package com.lagou.edu.controller.dao;


import com.lagou.edu.pojo.LagouUser;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author zjy
 */
public interface LagouUserDao extends JpaRepository<LagouUser,Long> {

    /**
     * 根据email
     * @param email
     * @return
     */
    LagouUser findByEmail(String email);

    /**
     * 根据email和password查询
     * @param email
     * @param password
     * @return
     */
    LagouUser findByEmailAndPassword(String email,String password);
}
